try:
    file = open("E:\\Desktop\\test.txt", "a", encoding="utf-8")
    file.write(" hello world123")

finally:
    file.close()
